package cn.ffcs.bpm.service;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;
import java.util.List;

import cn.ffcs.base.dao.BaseDAO;
import cn.ffcs.base.service.BaseService;
import cn.ffcs.base.web.PageControl;
import cn.ffcs.common.dao.AttachDAO;
import cn.ffcs.common.model.Attach;
import cn.ffcs.bpm.dao.IPartDAO;
import cn.ffcs.bpm.dao.NextTepDAO;
import cn.ffcs.bpm.model.NextTep;
import cn.ffcs.bpm.model.ProcessConfig;
import cn.ffcs.bpm.model.Part;

/**
 * 服务层<br/>
 * <table>
 * <tr>
 * <td>负责人/principal:</td>
 * <td colspan="2">pany</td>
 * <tr>
 * <td>修改记录/revision:</td>
 * <td colspan="2"></td>
 * </tr>
 * <tr>
 * <td>日期:</td>
 * <td>修改人:</td>
 * <td>修改说明:</td>
 * </tr>
 * <tr>
 * <td></td>
 * <td></td>
 * <td></td>
 * </tr>
 * </table>
 * @author pany
 * @version $Id$
 */
public class PartService<D extends Part> extends BaseService<D>
implements IPartService<D>
{
    private IPartDAO PartDAO;
    public void remove(Object entity, String fParam,String fParamValue){
        PartDAO.remove(entity,fParam,fParamValue);
    }
    
    /**
     * 按查询条件获取总数
     * @return
     */
    public List<D> findBy(Criterion cond){
        return PartDAO.findBy(cond);
    }

    public IPartDAO getPartDAO()
    {
        return PartDAO;
    }

    public void setPartDAO(IPartDAO PartDAO)
    {
        this.PartDAO = PartDAO;
    }
    
    
    
}
